// 扇形图
var column1Point = document.querySelector(".column1_point .echart");
var column1PointMyChart = echarts.init(column1Point);
option1 = {
  series: [
    {
      name: "Nightingale Chart",
      type: "pie",
      radius: ["10%", "70%"],
      center: ["50%", "50%"],
      roseType: "area",

      data: [
        { value: 23, name: "云南", itemStyle: { color: "#1873cd" } },
        { value: 38, name: "北京", itemStyle: { color: "#6bf49f" } },
        { value: 32, name: "山东", itemStyle: { color: "#fc7f7f" } },
        { value: 30, name: "河北", itemStyle: { color: "#f4a764" } },
        { value: 20, name: "江苏", itemStyle: { color: "#3daafd" } },
        { value: 26, name: "浙江", itemStyle: { color: "#c7f4a3" } },
        { value: 30, name: "四川", itemStyle: { color: "#6fc9f6" } },
        { value: 40, name: "湖北", itemStyle: { color: "#3daafd" } },
      ],
      label: {
        show: true,
        fontSize: 8, // 设置字体大小
      },
      labelLine: {
        show: true,
        length: 10, // 设置线的长度
        length2: 10, // 可选，设置第二段线的长度
      },
    },
  ],
};
option1 && column1PointMyChart.setOption(option1);
